<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
	<rich:panel id="panel">
		<f:facet name="header">
			<h:outputLink value="#{application.contextPath}/weather.seam" styleClass="new-window">
				<h:outputText value="#{messages['label.weather']}" />
			</h:outputLink>
		</f:facet>
		<h:form>
			<ctg:status />
			<table>
				<tr>
					<td colspan="2"><h:selectOneMenu value="#{weather.city}"
						onclick="return false;">
						<f:selectItems value="#{cities}" var="c"></f:selectItems>
						<a:support event="onchange" reRender="weather" />
					</h:selectOneMenu></td>
				</tr>
				<tr>
					<td><h:outputLink value="#{application.contextPath}/weather.seam" >
						<h:graphicImage alt="#{messages['label.image.alt']}"
							value="http://www.worldweather.org/img_cartoon/pic#{liveWeather.kod}.gif" />
					</h:outputLink></td>
					<td nowrap="nowrap"><h:outputLink value="#{application.contextPath}/weather.seam" styleClass="new-window">
						<h:outputText styleClass="temperature"
							value="#{liveWeather.temperaturaZraka} C" />
						<br />
						<h:outputText value="#{liveWeather.opis}" />
					</h:outputLink></td>
				</tr>
			</table>
		</h:form>
	</rich:panel>
</ui:component>